<template>
    <div>
      <el-table
      :data="tableData"
      style="width: 100%">
      <el-table-column
        prop="produceName"
        label="商品名称"
        width="180">
      </el-table-column>
      <el-table-column
        prop="lowPrice"
        label="历史最低单价"
        width="180">
        <template slot-scope="scope">
        <span v-if="scope.row.lowPrice" style="margin-left: 10px">{{ scope.row.lowPrice }}</span>
        <span v-else style="margin-left: 10px">暂无最低价</span>
      </template>
      </el-table-column>
    </el-table>
    </div>
  </template>
      
      <script>
 
  
  export default {
    props:{
      tableData: { // 搜索条件默认值重置值
              type: Array
          },
    },
    name: "lowPriceTable",
    data() {
      return {
        setupConfig: {
            width:0
        },
        dict: {},
        otherConfig: {
          list: "rows",
        },
        apiUrl,
        tableColumn: [
          { prop: "produceName", label: "产品名称" },
          { prop: "specification", label: "规格" },
          { prop: "parameter", label: "参数" },
          { prop: "brand", label: "品牌" },
          { prop: "unit", label: "单位" },
          { prop: "number", label: "数量" },
          { prop: "unitPrice", label: "单价" },
          { prop: "money", label: "总价" },
        ],
      };
    },
    created() {},
    methods: {
    },
  };
  </script>
      